<?php
/**
 * File: Address.php
 * User: Mr.Yang
 * Date: 2025/3/31 0031
 * Time: 10:50
 * Note:
 */

namespace app\home\validate;


use think\Validate;

class Address extends Validate
{
    protected $rule = [
        'truename' => 'require',
        'areaid' => 'require',
        'address' => 'require|min:5',
        'mobile' => 'require|mobile',
    ];

    protected $message = [
        'truename.require' => '联系人不能为空',
        'areaid.require' => '地区不能为空',
        'address.require' => '详细地址不能为空',
        'mobile.require' => '手机号不能为空',
        'mobile.mobile' => '手机号格式不正确',
    ];
}